package com.imoblife.brainwavestus.pad.activity;

import java.util.HashMap;

import com.imoblife.brainwavestus.BaseActivity;
import com.imoblife.brainwavestus.R;
import com.imoblife.brainwavestus.customview.SpecialsProductsView;

import android.app.Activity;
import android.graphics.Bitmap;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.TextView;


public class SpecialsProductActivity extends BaseActivity {

	SpecialsProductsView mSpecialsProductsView;

	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		
		if (mSpecialsProductsView == null) {
			mSpecialsProductsView = new SpecialsProductsView(this);
		}

		if (mSpecialsProductsView.isXLargerScreen()) {
			setContentView(R.layout.tb_specials_shop_layout);
			mSpecialsProductsView.loading();
			Button spinner = (Button) findViewById(R.id.categoryLayout);
			ArrayAdapter<String> adapter = new ArrayAdapter<String>(this,
					R.layout.tb_category_item);
			spinner.setText(getString(R.string.specials));
			spinner.setBackgroundResource(android.R.drawable.btn_default);
			spinner.setVisibility(View.VISIBLE);
		}
		initTitleName(getString(R.string.store));
	}

	public void finish() {

		super.finish();
	}

	protected void onDestroy() {
		mSpecialsProductsView.release();
		super.onDestroy();
		System.gc();
	}

}
